package com.ctcemti.mdm.project.sys.dao;

import com.ctcemti.mdm.project.sys.entity.SysMaterialClassification;
import com.ctcemti.mdm.project.sys.entity.SysMaterialClassification;
import org.apache.ibatis.annotations.Mapper;
import tk.mybatis.mapper.common.IdsMapper;

import java.util.List;

@Mapper
public interface SysMaterialClassificationMapper  extends tk.mybatis.mapper.common.Mapper<SysMaterialClassification>,IdsMapper<SysMaterialClassification> {

    /**
     * @Author bxf
     * @Description 根据名称级联查询实体list
     * @Date 9:38 2019/10/28
     * @Param
     * @return
     **/
    public List<SysMaterialClassification> selectSysMaterialClassificationByName(String name);

    /**
     * @Author bxf
     * @Description 根据主键更新实体
     * @Date 9:37 2019/10/28
     * @Param
     * @return
     **/
    public int updateByIdSelective(SysMaterialClassification record);

    /**
     * @Author bxf
     * @Description 根据pid级联删除子项
     * @Date 9:38 2019/10/28
     * @Param
     * @return
     **/
    public int deleteByPids(String ids[]);

    int insertBatch(List list);
}